package com.qqtech.qquan.circle.enums;

public enum CircleUpgradeApplyStatusDictEnum {
	/**
	 * 圈子-升级申请表状态CircleUpgradeApplyStatusEnum:1-待审核;2-审核通过;3-审核不通过
	 */
    TODO(1),
    AUDITPASS(2),
    AUDITNOPASS(3);
    int code;

    CircleUpgradeApplyStatusDictEnum (int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
    
    public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		CircleUpgradeApplyStatusDictEnum[] arrEnum = CircleUpgradeApplyStatusDictEnum.values();
		for (CircleUpgradeApplyStatusDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
